import { defineStore } from "pinia";
import { ref } from "vue";
import { getLoginApi } from '@/api/user';



const useUserStore = defineStore('user', () => {
    const userinfo = ref({})

    const login = async (values) => {

        const res = await getLoginApi(values)

        return res
    }

    return {
        userinfo,
        login,
    }

})

export default useUserStore